/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-05-26
 * Time: 15:52
 */
public class FindLengthOfLCIS {
    public int findLengthOfLCIS(int[] nums){
        int n=nums.length;
        int ret=0;
        for (int i = 0; i < n;) {
            int j=i+1;
            while (j<n&&nums[j]>nums[j-1]){
                j++;
            }
            ret=Math.max(j-i,ret);
            i=j;

        }
        return ret;
    }
}
